package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 优惠
 * </p>
 *
 * @author hpiggy
 * @since 2023-05-29
 */
@TableName("shopping_discounts")
@ApiModel(value = "ShoppingDiscounts对象", description = "优惠")
@Data
public class ShoppingDiscounts implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String name;

    private Long schoolId;

    private Long shoppingId;

    @ApiModelProperty("期数")
    private Integer periods;

    private Integer courseCount;

    @TableField(exist = false)
    private BigDecimal coursePrice;

    private BigDecimal disMoney;
}
